package com.ruoyix.flowable.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 模型管理业务对象 bpm_model
 *
 * @author ruoyi
 * @date 2023-11-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BpmModelBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模型ID
     */
//    @NotBlank(message = "模型ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelId;

    /**
     * 模型名称
     */
    @NotBlank(message = "模型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelName;

    /**
     * 模型Key
     */
    @NotBlank(message = "模型Key不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelKey;

    /**
     * 分类编码
     */
    private String category;

    /**
     * 版本
     */
    private Long version;

    /**
     * 模型描述
     */
    private String description;

    /**
     * 流程xml
     */
    private String bpmnXml;

    /**
     * 备注
     */
    private String remark;

}
